% function cueTemplate(cueList, groupModes, depth, workspace){ %>
<% depth++ %>
<% for(var c in cueList.cues){ %>
<% var cue = cueList.cues[c] %>
|
<% if(cue.broken){ %>
 |
<% }else if(cue.running){ %>
 |
<% }else if(cue.loaded){ %>
 |
<% }else if(cue.flagged){ %>
 |
<% }else{ %>
|
<% } %>
 %>.png) |
<%- cue.number || " " %> |
<%
var nextCueDepth = 0;
if(workspace.allCuesOrdered[cue.index+1]!=undefined){
nextCueDepth = workspace.allCuesOrdered[cue.index+1].groups.length-1;
}
%>
<% for(var i=0; i
<% if(i==depth-1 && cue.type=="Group"){ %>
<% if(cue.cues.length==0){ %>
|
<% }else{ %>
|
<% } %>
<% }else if(i
|
<% }else if(i>=nextCueDepth && i
|
<% }else if(i==depth-1 && i>nextCueDepth){ %>
|
<% }else{ %>
|
<% } %>
<% } %>
<% if(cue.type=="Group"){ %>
<% if(cue.cues.length==0){ %>
<%= cue.listName %> |
<% }else{ %>
<%= cue.listName %> |
<% } %>
<% }else if(depth>nextCueDepth+1){ %>
<%= cue.listName %> |
<% }else if(depth>1){ %>
<%= cue.listName %> |
<% }else{ %>
<%= cue.listName %> |
<% } %>
<%= cue.target %> |
<% if(cue.preWait){ %>
<%= prettyFormatTime(cue.preWait) %> |
<% }else{ %>
00:00.00 |
<% } %>
<% if(cue.duration || (cue.type=="Group" && cue.mode==3)){ %>
<% %>
<%= prettyFormatTime(cue.duration) %> |
<% }else{ %>
|
<% } %>
<% if(cue.postWait){ %>
<%= prettyFormatTime(cue.postWait) %> |
<% }else{ %>
00:00.00 |
<% } %>
<% if(cue.continueMode==2){ %>
 |
<% }else if(cue.continueMode==1){ %>
 |
<% }else{ %>
|
<% } %>
<% if(cue.cues){ %>
<% groupModes.push(cue.mode) %>
<% cueTemplate(cue, groupModes, depth, workspace) %>
<% } %>
<% } %>
<% groupModes.pop(); %>
<% } %>
<%= listName %>
<%= data.version || "" %>
<% for(var i in data.workspaces){ %>
<% for(var j in data.workspaces[i].cueLists){ %>
<% let cueList = data.workspaces[i].cueLists[j] %>
<%= cueList.listName %> - <%= data.workspaces[i].displayName %>
<% cueListOffset = 0 %>
|
|
|
Number |
|
Q |
|
|
|
|
|
|
|
|
|
Target |
Pre Wait |
Action |
Post Wait |
|
<% cueTemplate(cueList, [], [], data.workspaces[i]) %>
<% } %>
<% } %>
<%
function prettyFormatTime(seconds){
var startIndex = 14;
if(seconds>=3600){
startIndex = 11;
}
var string = new Date(seconds * 1000).toISOString()
return string.substring(startIndex, string.length-2)
}
%>